package com.aspose.cells;

class zbnx implements zahy {
   private boolean a;
   private int b;
   private int c;
   private int d;
   private int e;

   public void b(int var1) {
      this.c = var1;
   }

   public void a(int var1, int var2) {
      if (var1 < 0) {
         this.a = true;
         this.b = -var1;
         this.e = this.b;
      } else {
         this.a = false;
         this.b = var1;
      }

      this.d = var2;
   }

   public boolean a(int var1) {
      if (var1 < this.b) {
         if (!this.a) {
            this.e = this.b + this.c * this.d;
         }

         return false;
      } else {
         if (!this.a) {
            this.e = this.b + Math.min((var1 - this.b) / this.d, this.c) * this.d;
         }

         return true;
      }
   }

   public int a() {
      return this.e;
   }
}
